package com.guanjia.entity;

/*
* 还款
* */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

public class Repayment {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userid;
    private Integer creditid;
    private Integer repaymentmoney;      //还款金额
    private Date pepaymenttime;     //还款时间
    private String status;      //还款状态
    private Double already;     //已还本息
    private Double notreturned;     //待还本息
    private String overdue;     //是否逾期
    private Date createtime;

    public Repayment(Integer id, Integer userid, Integer creditid,
                     Integer repaymentmoney, Date pepaymenttime, String status,
                     Double already, Double notreturned, String overdue) {
        this.id = id;
        this.userid = userid;
        this.creditid = creditid;
        this.repaymentmoney = repaymentmoney;
        this.pepaymenttime = pepaymenttime;
        this.status = status;
        this.already = already;
        this.notreturned = notreturned;
        this.overdue = overdue;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserId(Integer userid) {
        this.userid = userid;
    }

    public Integer getCreditid() {
        return creditid;
    }

    public void setCreditId(Integer creditid) {
        this.creditid = creditid;
    }

    public Integer getRepaymentmoney() {
        return repaymentmoney;
    }

    public void setRepaymentmoney(Integer repaymentmoney) {
        this.repaymentmoney = repaymentmoney;
    }

    public Date getPepaymenttime() {
        return pepaymenttime;
    }

    public void setPepaymenttime(Date pepaymenttime) {
        this.pepaymenttime = pepaymenttime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Double getAlready() {
        return already;
    }

    public void setAlready(Double already) {
        this.already = already;
    }

    public Double getNotreturned() {
        return notreturned;
    }

    public void setNotreturned(Double notreturned) {
        this.notreturned = notreturned;
    }

    public String getOverdue() {
        return overdue;
    }

    public void setOverdue(String overdue) {
        this.overdue = overdue;
    }

    public Repayment() {
    }

    @Override
    public String toString() {
        return "Repayment{" +
                "id=" + id +
                ", userId=" + userid +
                ", creditId=" + creditid +
                ", repaymentmoney=" + repaymentmoney +
                ", pepaymenttime=" + pepaymenttime +
                ", status='" + status + '\'' +
                ", already=" + already +
                ", notreturned=" + notreturned +
                ", overdue='" + overdue + '\'' +
                '}';
    }
}
